//1.导入http模块
const http = require('http')
//2.创建web服务器实例
const server = http.createServer()
//3.为服务器实例帮电工request事件
server.on('request', (req, res) => {
  console.log('Someone visit our web server')
  
})
//4.启动服务器
server.listen(80, () => {
  console.log('启动成功')
  
})